﻿using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Text;

namespace DBProjectMVVM.ViewModel
{
  class DataBaseViewModel : ObservableObject
  {
    public ObservableCollection<ContactViewModel> Contacts { get; set; }
    public DataBaseViewModel()
    {
      Contacts = new ObservableCollection<ContactViewModel>();

      //EXAMPLE ELEMENTS

      Contacts.Add(
        new ContactViewModel()
        {
          FirstName = "Karol",
          LastName = "Goraus",
          Age = "28",
          Email = "karolgoraus@gmail.com",
          PhoneNumber = "509296596"
        }
      );

      Contacts.Add(
        new ContactViewModel()
        {
          FirstName = "Monika",
          LastName = "Wozniak-Goraus",
          Age = "26",
          Email = "wozniakgoraus@gmail.com",
          PhoneNumber = "504091413"
        }
      );
    }
  }
}
